From: Tollef Fog Heen Date: Tue, 25 Feb 2014 12:38:49 +0000 (+0100) Subject: Only run parse_command if run directly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a3e6ca087f892e9328515c8ffd54e96f997b24;p=pwstore Only run parse_command if run directly --- diff --git a/pws.rb b/pws.rb index 7a43e83..c4b6d1c 100755 --- a/pws.rb +++ b/pws.rb @@ -986,7 +986,9 @@ def parse_command end end -parse_command +if __FILE__ == $0 + parse_command +end # vim:set shiftwidth=2: # vim:set et: