Show
Ignore:
Timestamp:
02/07/03 00:20:03 (21 years ago)
Author:
jalet
Message:

warnpykota doesn't need any user/group name argument, mimicing the
warnquota disk quota tool.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r728 r729  
    1515# 
    1616# $Log$ 
     17# Revision 1.12  2003/02/06 23:20:02  jalet 
     18# warnpykota doesn't need any user/group name argument, mimicing the 
     19# warnquota disk quota tool. 
     20# 
    1721# Revision 1.11  2003/02/06 22:54:33  jalet 
    1822# warnpykota should be ok 
     
    9498        sys.exit(0) 
    9599         
    96     def parseCommandline(self, argv, short, long) : 
     100    def parseCommandline(self, argv, short, long, allownothing=0) : 
    97101        """Parses the command line, controlling options.""" 
    98102        # split options in two lists: those which need an argument, those which don't need any 
     
    146150                        # should never occur 
    147151                        raise PyKotaToolError, "Unexpected problem when parsing command line" 
    148             elif (not args) and sys.stdin.isatty() : # no option and no argument, we display help if we are a tty 
     152            elif (not args) and (not allownothing) and sys.stdin.isatty() : # no option and no argument, we display help if we are a tty 
    149153                self.display_usage_and_quit() 
    150154        except getopt.error, msg :