Better command line help.

pull/15/head
Jussi Pakkanen 12 years ago
parent b287da1bb3
commit 6b7b9ed47c
  1. 3
      builder.py

@ -79,7 +79,8 @@ class BuilderApp():
if __name__ == '__main__': if __name__ == '__main__':
(options, args) = parser.parse_args(sys.argv) (options, args) = parser.parse_args(sys.argv)
if len(args) == 1 or len(args) > 3: if len(args) == 1 or len(args) > 3:
print('Invalid number of arguments') print('%s <source directory> <build directory>' % sys.argv[0])
print('If you omit either directory, the current directory is substituted.')
sys.exit(1) sys.exit(1)
dir1 = args[1] dir1 = args[1]
if len(args) > 2: if len(args) > 2:

Loading…
Cancel
Save