Browse files

Allow specification of command line arguments via environment variable.

  • Loading branch information...
1 parent be86f47 commit d75d687f32546165de50917feae09129ef6cc3c8 @Achimh3011 Achimh3011 committed Nov 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 dstat
View
4 dstat
@@ -1389,7 +1389,7 @@ class dstat_swap(dstat):
for l in self.splitlines():
if len(l) < 5: continue
if l[0] == 'Filename': continue
- try:
+ try:
int(l[2])
int(l[3])
except:
@@ -2654,7 +2654,7 @@ def perform(update):
if __name__ == '__main__':
try:
initterm()
- op = Options(sys.argv[1:])
+ op = Options(sys.argv[1:]+os.getenv('DSTAT_OPTS','').split())
theme = set_theme()
if op.profile:
import profile

0 comments on commit d75d687

Please sign in to comment.